<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>广告管理</strong></div>
        <div class="padding border-bottom">
            <a href="{:U('index')}" class="button button-small border-green">广告位</a>
            <a href="JavaScript:void(0);" class="button button-small border-green">广告管理</a>
            <a href="{:U('advAdd',array('ap_id'=>I('ap_id')))}" class="button button-small border-green">新增广告</a>
        </div>
        <form action="" method="post" id="myform" name="myform">
            <table class="table tb-type2">
                <thead>
                    <tr class="thead">
                        <th>ID</th>
                        <th>广告名称</th>
                        <th>所属广告位</th>
                        <th class="align-center">内容</th>
                        <th class="align-center">连接</th>
                        <th class="align-center">开始时间</th>
                        <th class="align-center">结束时间</th>
                        <th class="align-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                <foreach item='v' name='list'>
                    <tr class="hover" style="background: rgb(255, 255, 255);">
                        <td class="w24">{$v['adv_id']}</td>
                        <td><span title="顶部广告">{$v['adv_title']}</span></td>
                        <td><span title="首页顶部广告">{$v['ap_id']}</span></td>
                        <td class="align-center"><img src="{$v['adv_pc_pic']}" height="60px" width="120px" /></td>
                        <td class="align-center"><a href="{$v['adv_pc_url']}" target="_blank">{$v['adv_pc_url']}</a></td>
                        <td class="align-center nowrap">{$v['adv_start_date']|date="Y-m-d",###}</td>
                        <td class="align-center nowrap">{$v['adv_end_date']|date="Y-m-d",###}</td>
                        <td class="w72 align-center">
                            <a class="button bg-blue button-little" href="{:U('advEdit',array('adv_id'=>$v['adv_id']))}"><i class="icon-edit"></i>编辑</a>
                            <a class="button bg-red button-little js-del" href="javascript:;" data="{$v['adv_id']}" title="删除"><i calss="icon-minus-circle"></i>删除</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
                <tfoot>
                    <tr class="tfoot">
                        <td></td>
                        <td id="batchAction" colspan="15">
                            {$page}
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "{:U('Adv/advDel')}",
    });
</script>